<template>
<p>使用 <code>show-password</code> 属性即可得到一个可切换显示隐藏的密码框</p>
  <el-input
    v-model="input"
    style="width: 240px"
    type="password"
    placeholder="Please input password"
    show-password
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const input = ref('')
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>